package il.ac.technion.wiki.api;

import java.util.Date;

public abstract class WikiPageApi<T> {
	
	private String m_name;
	
	private double m_version = 0;
	
	private String m_author;
	
	private String m_language;
	
	private Date m_date;
	
	private final T m_data;
	
	protected WikiPageApi(String name, String author, String language, Date date, T data) {
		m_name = name;
		m_author = author;
		m_language = language;
		m_date = date;
		m_data = data;
	}
		
	public String name() {
		return m_name;
	}

	public double version() {
		return m_version;
	}

	public String author() {
		return m_author;
	}

	public String language() {
		return m_language;
	}

	public Date date() {
		return m_date;
	}
	
	public String text() {
		return null;
	}
	
	public T data() {
		return m_data;
	}
	
}
